package com.halopay.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.halopay.common.utils.validator.group.AddGroup;
import com.halopay.common.utils.validator.group.UpdateGroup;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author zx
 * @email zdkk@foxmail.com
 * @date 2019-01-18 17:13:28
 */
@TableName("packet_detail")
public class PacketDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 红包金额
	 */
	@NotBlank(message="红包金额不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Integer packetDetailTotal;
	/**
	 * 红包被抢时间
	 */
	@NotBlank(message="红包被抢时间不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Date packetDetailCreateTime;
	/**
	 * 抢红包人id
	 */
	@NotBlank(message="抢红包人id不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Long packetDetailUserId;

	/**
	 * 设置：主键
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：主键
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：红包金额
	 */
	public void setPacketDetailTotal(Integer packetDetailTotal) {
		this.packetDetailTotal = packetDetailTotal;
	}
	/**
	 * 获取：红包金额
	 */
	public Integer getPacketDetailTotal() {
		return packetDetailTotal;
	}
	/**
	 * 设置：红包被抢时间
	 */
	public void setPacketDetailCreateTime(Date packetDetailCreateTime) {
		this.packetDetailCreateTime = packetDetailCreateTime;
	}
	/**
	 * 获取：红包被抢时间
	 */
	public Date getPacketDetailCreateTime() {
		return packetDetailCreateTime;
	}
	/**
	 * 设置：抢红包人id
	 */
	public void setPacketDetailUserId(Long packetDetailUserId) {
		this.packetDetailUserId = packetDetailUserId;
	}
	/**
	 * 获取：抢红包人id
	 */
	public Long getPacketDetailUserId() {
		return packetDetailUserId;
	}
}
